package org.example.project.common.enums.errorEnum;


import org.example.project.common.convention.errorcode.IErrorCode;

/**
 * @author weibin
 * @since 2025/10/4 18:41
 */
public enum ShortLinkErrorCodeEnum implements IErrorCode {

    SHORT_LINK_NULL("A000600", "短链接不存在"),
    SHORT_LINK_NAME_EXIST("A000601", "短链接已存在"),
    SHORT_LINK_SAVE_ERROR("A000603", "短链接保存失败"),
    SHORT_LINK_UPDATE_ERROR("A000604", "短链接修改失败"),
    SHORT_LINK_DELETE_ERROR("A000605", "短链接删除失败"),
    SHORT_LINK_DUPLICATE_ERROR("A000606", "短链接重复入库"),
    SHORT_LINK_GEN_TOO_MANY_ERROR("A000607", "短链接生成超阈值"),
    SHORT_LINK_MOVE_TO_RECYCLE_BIN_ERROR("A000608", "短链接移至回收站失败"),

    ;


    private final String code;
    private final String message;

    ShortLinkErrorCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
